package com.shop.shoppojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.Locale;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
 * 评论实体类
 */
public class Comment implements Serializable {
    // 序列化版本号
    @Serial
    private static final long serialVersionUID = 1L;
    //主键id
    private Long id;
    private Integer score;
    //评分
    private String content;
    //评论内容
    private LocalDateTime createTime;
    //评论创建时间
    private Long  userId;
    //评论用户的ID
    private Long  goodsId;
    //评论商品的ID
}
